package nameless.aistudy.domain.service.statistics;

import nameless.aistudy.domain.model.statistics.Statistics;

import java.math.BigDecimal;
import java.time.LocalDate;

public interface StatisticsService {

    Statistics getUserStatistics(int userId, long typeId, LocalDate date);

    // 累计添加
    // 若无指定统计记录，则会自动添加
    // daily = amount
    // overall = 就近日期记录的overall + amount
    boolean addUserStatistics(int userId, long typeId, LocalDate date, BigDecimal amount);

    // 严格设置daily与overall
    // 若无指定统计记录，则会自动添加
    boolean setUserStatistics(int userId, long typeId, LocalDate date, BigDecimal dailyAmount, BigDecimal overallAmount);
}
